﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using ZBJF.Warranty.Common.Common;
using ZBJF.Warranty.Common.Enums;
using ZBJF.Warranty.Model;

namespace ZBJF.Warranty.BLL
{
   public partial class WeiXinMessageBackService
    {
        #region 获取微信消息 + WeiXinMessageBack GetWeiXinMessage(string messageKey)
        /// <summary>
        /// 获取微信消息
        /// </summary>
        /// <param name="messageKey">消息键</param>
        /// <returns></returns>
        public string GetWeiXinMessage(string messageKey)
        {
            var result = LoadEntities(c => c.MessageKey == messageKey).FirstOrDefault();
            return result != null ? result.MessageValue : string.Empty;
        } 
        #endregion

    }
}
